package com.xdwanj.service.impl;

import com.xdwanj.dao.RoleDao;
import com.xdwanj.dao.impl.RoleDaoImpl;
import com.xdwanj.pojo.Role;
import com.xdwanj.service.RoleService;

import java.util.List;

public class RoleServiceImpl implements RoleService {
    RoleDao roleDao = new RoleDaoImpl();

    @Override
    public List<Role> findAllRoleList(int id) {
        List<Role> list = null;

        try {
            list = roleDao.findRoleAllList(id);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return list;
    }
}
